package com.tronsis.distribution.biz;

import android.app.Activity;

import com.tronsis.library.http.UICallBack;

import java.io.File;
import java.util.ArrayList;


public interface FileBiz {
    /**
     * 下载文件
     * @param activity
     * @param id
     * @param callBack
     * @throws Exception
     */
    void downLoad(Activity activity, String id, UICallBack callBack)throws Exception;

    /**
     * 缩略图,限图片
     * @param activity
     * @param h
     * @param id
     * @param q
     * @param w
     * @param callBack
     * @throws Exception
     */
    void thumbnail(Activity activity, int h, String id, Number q, int w, UICallBack callBack)throws Exception;

    /**
     * 上传文件(先本地压缩)
     * @param activity
     * @param file
     * @param type
     * @param callBack
     * @throws Exception
     */
    void upload(Activity activity, File file, String type, UICallBack callBack)throws Exception;

    /**
     * 批量上传文件(先本地压缩)
     * @param activity
     * @param files
     * @param type
     * @param callBack
     * @throws Exception
     */
    void uploads(Activity activity, ArrayList<File> files, String type, UICallBack callBack)throws Exception;

}
